try {
	Type.registerNamespace('SapplyVO');
	
	//出库申请VO
	SapplyVO = function() {};
	SapplyVO.prototype = new NCMMPubUtil.SuperVO();
	SapplyVO.PK_HEAD = {
		name: "pk_head",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.PK_GROUP = {
		name: "pk_group",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.PK_ORG = {
		name: "pk_org",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.VBILLCODE = {
		name: "vbillcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	SapplyVO.CTRANTYPEID = {
		name: "ctrantypeid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CTRANTYPEIDNAME = {
		name: "ctrantypeidname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.DBILLDATE = {
		name: "dbilldate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.VTRANTYPECODE = {
		name: "vtrantypecode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	//子表
	SapplyVO.CROWNO = {
		name: "crowno",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.PK_ITEM = {
		name: "pk_item",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CISSURORG = {
		name: "cissueorg",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CISSURORG_NAME = {
		name: "cissueorg_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CMATERIALVID = {
		name: "cmaterialvid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CMATERIALVID_CODE = {
		name: "cmaterialvid_code",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CMATERIALVID_NAME = {
		name: "cmaterialvid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.MATERIALSPEC = {
		name: "materialspec",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.MATERIALTYPE = {
		name: "materialtype",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.MATERIALSHORTNAME = {
		name: "materialshortname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CUNITID = {
		name: "cunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CUNITID_CODE = {
		name: "cunitid_code",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CUNITID_NAME = {
		name: "cunitid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CASTUNITID = {
		name: "castunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CASTUNITID_CODE = {
		name: "castunitid_code",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.CASTUNITID_NAME = {
		name: "castunitid_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.VCHANGERATE = {
		name: "vchangerate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.NNUM = {
		name: "nnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.NASSISTNUM = {
		name: "nassistnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.VBATCHCODE = {
		name: "vbatchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};	
	
	SapplyVO.BTS = {
		name: "bts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};

	SapplyVO.NSCANEDNUM = {
		name: "nscanednum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	SapplyVO.NSCANEDASTNUM = {
		name: "nscanedastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
    SapplyVO.CWAREHOUSEID = {
        name: "cwarehouseid",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    SapplyVO.CWASTEWAREHOUSEID = {
        name: "cwastewarehouseid",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    SapplyVO.CWASTEWAREHOUSEID_NAME = {
        name: "cwastewarehouseid_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    SapplyVO.ISWAST = {
        name: "iswast",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    
    
	SapplyVO.prototype.getAllAttrs = function() {
		return [SapplyVO.PK_HEAD,
			SapplyVO.PK_GROUP,
			SapplyVO.PK_ORG,
			SapplyVO.VBILLCODE,
			SapplyVO.CTRANTYPEID,
			SapplyVO.CTRANTYPEIDNAME,
			SapplyVO.DBILLDATE,
			SapplyVO.VTRANTYPECODE,
			//表体
			SapplyVO.PK_ITEM,
			SapplyVO.CROWNO,
			SapplyVO.CISSURORG,
			SapplyVO.CISSURORG_NAME,
			SapplyVO.CMATERIALVID,
			SapplyVO.CMATERIALVID_CODE,
			SapplyVO.CMATERIALVID_NAME,
			SapplyVO.MATERIALSPEC,
			SapplyVO.MATERIALTYPE,
			SapplyVO.MATERIALSHORTNAME,
			SapplyVO.CUNITID,
			SapplyVO.CUNITID_CODE,
			SapplyVO.CUNITID_NAME,
			SapplyVO.CASTUNITID,
			SapplyVO.CASTUNITID_CODE,
			SapplyVO.CASTUNITID_NAME,
			SapplyVO.VCHANGERATE,
			SapplyVO.NNUM,
			SapplyVO.NASSISTNUM,
			SapplyVO.VBATCHCODE,
			SapplyVO.BTS,
			SapplyVO.NSCANEDNUM,
			SapplyVO.NSCANEDASTNUM,
			SapplyVO.CWAREHOUSEID,
			SapplyVO.CWASTEWAREHOUSEID,
			SapplyVO.CWASTEWAREHOUSEID_NAME,
			SapplyVO.ISWAST
			];
	};
	SapplyVO.prototype.getTableName = function() {
		return "ic_sapply";
	};
	SapplyVO.prototype.getPrimaryAttr = function() {
		return SapplyVO.PK_ITEM;
	};
} catch(e) {
	$e(e);
}